package com.maikang.exammall.util.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MobileOrNullValidator.class)
public @interface MobileOrNull {

    String message() default "手机号码有无， 请核对后提交";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
